package com.ansuenjob.jsonBuilder;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import com.ansuenjob.vo.JobVO;


public class JobVoFunctions {
	public static List<JobVO> getJobVos(JSONArray jsonArray) throws JSONException {
		JobVoBuilder builder = new JobVoBuilder();
		List<JobVO> jobVOst = new ArrayList<JobVO>();
		for (int i = 0; i < jsonArray.length(); i++) {
			jobVOst.add(builder.buildJson(jsonArray.getJSONObject(i)));
		}
		return jobVOst;
	}
}
